.PHONY: mock
mock:
	@mockgen -source=webook\internal\service\user.go -package=svcmocks -destination=webook\internal\service\mocks\user.mock.go
	@mockgen -source=webook\internal\service\code.go -package=svcmocks -destination=webook\internal\service\mocks\code.mock.go
	@go mod tidy

    @mockgen -source="E:\新建文件夹\GoLangDemo\geekBeginner\webook\internal\service\user.go" -package=svcmocks -destination="E:\新建文件夹\GoLangDemo\geekBeginner\webook\internal\service\mocks\user.mock.go"
	@mockgen -source="E:\新建文件夹\GoLangDemo\geekBeginner\webook\internal\service\code.go" -package=svcmocks -destination="E:\新建文件夹\GoLangDemo\geekBeginner\webook\internal\service\mocks\code.mock.go"

	@mockgen -source=webook/internal/service/article.go -package=svcmocks -destination=webook/internal/service/mocks/article.mock.go
	@mockgen -source=webook/internal/repository/article/article.go -package=artrepomocks -destination=webook/internal/repository/article/mocks/article.mock.go
    @mockgen -source=webook/internal/repository/article/article_author.go -package=artrepomocks -destination=webook/internal/repository/article/mocks/article_author.mock.go
    @mockgen -source=webook/internal/repository/article/article_reader.go -package=artrepomocks -destination=webook/internal/repository/article/mocks/article_reader.mock.go